package com.vjwealth.android.nos.utils

/**
 * projectName KNOS
 * date 2017/9/29
 * description com.vjwealth.android.nos.utils
 */
class ParamsUtils{

    companion object {
        fun g_map2string(params: HashMap<String, String>): String{
            var p = "?"
            for((k, v) in params){
                p = p+k+"="+v+"&"
            }
            return p.substring(0, p.length-1)
        }

        fun p_map2string(params: HashMap<String, String>): String{
            var p = ""
            for((k, v) in params){
                p = p+k+"="+v+"&"
            }
            return p.substring(0, p.length-1)
        }
    }
}